import { Component } from '@angular/core';
import { CommonModule } from "@angular/common";
import { NavController } from 'ionic-angular';

import { AngularFire, FirebaseListObservable } from "angularfire2"
@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
    items: FirebaseListObservable<any[]>;
    constructor(public navCtrl: NavController, af: AngularFire) {
      this.items = af.database.list('/message_list');
  }
  
  onLink(url: string) {
      window.open(url);
  }
}